package java201521123059;

import java.util.Scanner;
public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  StringBuilder strB = new StringBuilder();
  while (sc.hasNext()) {
   int n=sc.nextInt();
   for (int i = 0; i < n; i++) {
    strB.append(i);
   }
   int a=sc.nextInt();
   int b=sc.nextInt();
   System.out.println(strB.substring(a, b));
  }
  sc.close();
 }
}
